"""MyBlog URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from django.contrib.staticfiles.urls import static

from MyBlog import settings, main_view, note_view, document_view

urlpatterns = [
    url(r'^admin/', admin.site.urls),

    url(r'^$', main_view.index_page, name=''),
    url(r'^note$', main_view.note_page, name='note'),
    url(r'^document$', main_view.document_page, name='document'),
    url(r'^timeline$', main_view.timeline_page, name='timeline'),
    url(r'^comment$', main_view.comment_page, name='comment'),

    url(r'^welcome$', note_view.welcome_page, name='welcome'),
    url(r'^music-1$', note_view.music_page, name='music-1'),
    url(r'^music-2$', note_view.music2_page, name='music-2'),

    url(r'^document-1$', document_view.document_page, name='document-1'),
    url(r'^document-2$', document_view.document2_page, name='document-2'),
    url(r'^document-3$', document_view.document3_page, name='document-3'),
    url(r'^document-4$', document_view.document4_page, name='document-4'),


] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
